.class public Lrexsee/core/style/CanvasSheet;
.super Ljava/lang/Object;
.source "CanvasSheet.java"


# instance fields
.field public color:Ljava/lang/String;

.field public command:Ljava/lang/String;

.field private drawable:Landroid/graphics/drawable/Drawable;

.field public from:Ljava/lang/String;

.field private final mContext:Landroid/content/Context;

.field private final mDensity:F

.field public mode:Ljava/lang/String;

.field public paint:Landroid/graphics/Paint;

.field public path:Ljava/lang/String;

.field public radius:Ljava/lang/String;

.field public round_x_radius:Ljava/lang/String;

.field public round_y_radius:Ljava/lang/String;

.field public text:Ljava/lang/String;

.field public to:Ljava/lang/String;

.field public x:Ljava/lang/String;

.field public x2:Ljava/lang/String;

.field public x3:Ljava/lang/String;

.field public x4:Ljava/lang/String;

.field public y:Ljava/lang/String;

.field public y2:Ljava/lang/String;

.field public y3:Ljava/lang/String;

.field public y4:Ljava/lang/String;

.field public z:Ljava/lang/String;

.field public z2:Ljava/lang/String;

.field public z3:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 11
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "style"    # Ljava/lang/String;

    .prologue
    const/4 v9, 0x0

    const-string v6, "-1"

    const-string v10, ":"

    const-string v8, ""

    const-string v5, "0"

    .line 108
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 19
    const-string v4, ""

    iput-object v8, p0, Lrexsee/core/style/CanvasSheet;->command:Ljava/lang/String;

    .line 20
    iput-object v9, p0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    .line 22
    iput-object v9, p0, Lrexsee/core/style/CanvasSheet;->drawable:Landroid/graphics/drawable/Drawable;

    .line 23
    const-string v4, ""

    iput-object v8, p0, Lrexsee/core/style/CanvasSheet;->path:Ljava/lang/String;

    .line 24
    const-string v4, ""

    iput-object v8, p0, Lrexsee/core/style/CanvasSheet;->text:Ljava/lang/String;

    .line 25
    const-string v4, "#FFFFFF"

    iput-object v4, p0, Lrexsee/core/style/CanvasSheet;->color:Ljava/lang/String;

    .line 27
    const-string v4, "0"

    iput-object v5, p0, Lrexsee/core/style/CanvasSheet;->from:Ljava/lang/String;

    .line 28
    const-string v4, "360"

    iput-object v4, p0, Lrexsee/core/style/CanvasSheet;->to:Ljava/lang/String;

    .line 29
    const-string v4, "none"

    iput-object v4, p0, Lrexsee/core/style/CanvasSheet;->mode:Ljava/lang/String;

    .line 30
    const-string v4, ""

    iput-object v8, p0, Lrexsee/core/style/CanvasSheet;->radius:Ljava/lang/String;

    .line 31
    const-string v4, ""

    iput-object v8, p0, Lrexsee/core/style/CanvasSheet;->round_x_radius:Ljava/lang/String;

    .line 32
    const-string v4, ""

    iput-object v8, p0, Lrexsee/core/style/CanvasSheet;->round_y_radius:Ljava/lang/String;

    .line 34
    const-string v4, "0"

    iput-object v5, p0, Lrexsee/core/style/CanvasSheet;->x:Ljava/lang/String;

    .line 35
    const-string v4, "0"

    iput-object v5, p0, Lrexsee/core/style/CanvasSheet;->y:Ljava/lang/String;

    .line 36
    const-string v4, "0"

    iput-object v5, p0, Lrexsee/core/style/CanvasSheet;->z:Ljava/lang/String;

    .line 37
    const-string v4, "0"

    iput-object v5, p0, Lrexsee/core/style/CanvasSheet;->x2:Ljava/lang/String;

    .line 38
    const-string v4, "0"

    iput-object v5, p0, Lrexsee/core/style/CanvasSheet;->y2:Ljava/lang/String;

    .line 39
    const-string v4, "0"

    iput-object v5, p0, Lrexsee/core/style/CanvasSheet;->z2:Ljava/lang/String;

    .line 40
    const-string v4, "0"

    iput-object v5, p0, Lrexsee/core/style/CanvasSheet;->x3:Ljava/lang/String;

    .line 41
    const-string v4, "0"

    iput-object v5, p0, Lrexsee/core/style/CanvasSheet;->y3:Ljava/lang/String;

    .line 42
    const-string v4, "0"

    iput-object v5, p0, Lrexsee/core/style/CanvasSheet;->z3:Ljava/lang/String;

    .line 43
    const-string v4, "-1"

    iput-object v6, p0, Lrexsee/core/style/CanvasSheet;->x4:Ljava/lang/String;

    .line 44
    const-string v4, "-1"

    iput-object v6, p0, Lrexsee/core/style/CanvasSheet;->y4:Ljava/lang/String;

    .line 109
    iput-object p1, p0, Lrexsee/core/style/CanvasSheet;->mContext:Landroid/content/Context;

    .line 110
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v4

    iget v4, v4, Landroid/util/DisplayMetrics;->density:F

    iput v4, p0, Lrexsee/core/style/CanvasSheet;->mDensity:F

    .line 111
    const-string v4, ";"

    invoke-virtual {p2, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 112
    .local v0, "argus":[Ljava/lang/String;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    array-length v4, v0

    if-lt v1, v4, :cond_1

    .line 122
    iget-object v4, p0, Lrexsee/core/style/CanvasSheet;->path:Ljava/lang/String;

    const-string v5, ""

    invoke-virtual {v4, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_0

    .line 123
    iget-object v4, p0, Lrexsee/core/style/CanvasSheet;->mContext:Landroid/content/Context;

    iget-object v5, p0, Lrexsee/core/style/CanvasSheet;->path:Ljava/lang/String;

    invoke-static {v4, v9, v5}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    iput-object v4, p0, Lrexsee/core/style/CanvasSheet;->drawable:Landroid/graphics/drawable/Drawable;

    .line 125
    :cond_0
    new-instance v4, Lrexsee/core/style/PaintSheet;

    invoke-direct {v4, p2}, Lrexsee/core/style/PaintSheet;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Lrexsee/core/style/PaintSheet;->getPaint()Landroid/graphics/Paint;

    move-result-object v4

    iput-object v4, p0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    .line 126
    return-void

    .line 113
    :cond_1
    aget-object v4, v0, v1

    const-string v5, ":"

    invoke-virtual {v4, v10}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v4

    if-gtz v4, :cond_3

    .line 112
    :cond_2
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 114
    :cond_3
    aget-object v4, v0, v1

    const/4 v5, 0x0

    aget-object v6, v0, v1

    const-string v7, ":"

    invoke-virtual {v6, v10}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v6

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    const-string v5, "\\-"

    const-string v6, "\\_"

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 115
    .local v2, "key":Ljava/lang/String;
    aget-object v4, v0, v1

    aget-object v5, v0, v1

    const-string v6, ":"

    invoke-virtual {v5, v10}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v5

    add-int/lit8 v5, v5, 0x1

    invoke-virtual {v4, v5}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    .line 116
    .local v3, "value":Ljava/lang/String;
    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v4

    if-eqz v4, :cond_2

    .line 118
    :try_start_0
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v4

    invoke-virtual {v4, p0, v3}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 119
    :catch_0
    move-exception v4

    goto :goto_1
.end method

.method private getMatrix()Landroid/graphics/Matrix;
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 83
    const/16 v2, 0x9

    new-array v0, v2, [F

    .line 84
    .local v0, "array":[F
    const/4 v2, 0x0

    iget-object v3, p0, Lrexsee/core/style/CanvasSheet;->x:Ljava/lang/String;

    invoke-static {v3, v4}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v3

    aput v3, v0, v2

    .line 85
    const/4 v2, 0x1

    iget-object v3, p0, Lrexsee/core/style/CanvasSheet;->y:Ljava/lang/String;

    invoke-static {v3, v4}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v3

    aput v3, v0, v2

    .line 86
    const/4 v2, 0x2

    iget-object v3, p0, Lrexsee/core/style/CanvasSheet;->z:Ljava/lang/String;

    invoke-static {v3, v4}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v3

    aput v3, v0, v2

    .line 87
    const/4 v2, 0x3

    iget-object v3, p0, Lrexsee/core/style/CanvasSheet;->x2:Ljava/lang/String;

    invoke-static {v3, v4}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v3

    aput v3, v0, v2

    .line 88
    const/4 v2, 0x4

    iget-object v3, p0, Lrexsee/core/style/CanvasSheet;->y2:Ljava/lang/String;

    invoke-static {v3, v4}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v3

    aput v3, v0, v2

    .line 89
    const/4 v2, 0x5

    iget-object v3, p0, Lrexsee/core/style/CanvasSheet;->z2:Ljava/lang/String;

    invoke-static {v3, v4}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v3

    aput v3, v0, v2

    .line 90
    const/4 v2, 0x6

    iget-object v3, p0, Lrexsee/core/style/CanvasSheet;->x3:Ljava/lang/String;

    invoke-static {v3, v4}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v3

    aput v3, v0, v2

    .line 91
    const/4 v2, 0x7

    iget-object v3, p0, Lrexsee/core/style/CanvasSheet;->y3:Ljava/lang/String;

    invoke-static {v3, v4}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v3

    aput v3, v0, v2

    .line 92
    const/16 v2, 0x8

    iget-object v3, p0, Lrexsee/core/style/CanvasSheet;->z3:Ljava/lang/String;

    invoke-static {v3, v4}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v3

    aput v3, v0, v2

    .line 93
    new-instance v1, Landroid/graphics/Matrix;

    invoke-direct {v1}, Landroid/graphics/Matrix;-><init>()V

    .line 94
    .local v1, "matrix":Landroid/graphics/Matrix;
    invoke-virtual {v1, v0}, Landroid/graphics/Matrix;->setValues([F)V

    .line 95
    return-object v1
.end method

.method private getRect()Landroid/graphics/Rect;
    .locals 5

    .prologue
    .line 70
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {p0}, Lrexsee/core/style/CanvasSheet;->getX()I

    move-result v1

    invoke-direct {p0}, Lrexsee/core/style/CanvasSheet;->getY()I

    move-result v2

    invoke-direct {p0}, Lrexsee/core/style/CanvasSheet;->getX2()I

    move-result v3

    invoke-direct {p0}, Lrexsee/core/style/CanvasSheet;->getY2()I

    move-result v4

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    return-object v0
.end method

.method private getRectF()Landroid/graphics/RectF;
    .locals 5

    .prologue
    .line 80
    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {p0}, Lrexsee/core/style/CanvasSheet;->getX()I

    move-result v1

    int-to-float v1, v1

    invoke-direct {p0}, Lrexsee/core/style/CanvasSheet;->getY()I

    move-result v2

    int-to-float v2, v2

    invoke-direct {p0}, Lrexsee/core/style/CanvasSheet;->getX2()I

    move-result v3

    int-to-float v3, v3

    invoke-direct {p0}, Lrexsee/core/style/CanvasSheet;->getY2()I

    move-result v4

    int-to-float v4, v4

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/RectF;-><init>(FFFF)V

    return-object v0
.end method

.method private getSrcRect()Landroid/graphics/Rect;
    .locals 9

    .prologue
    const/4 v6, 0x0

    const-string v8, "px"

    const-string v7, ""

    .line 73
    iget-object v4, p0, Lrexsee/core/style/CanvasSheet;->x3:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    const-string v5, "px"

    const-string v5, ""

    invoke-virtual {v4, v8, v7}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4, v6}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v0

    .line 74
    .local v0, "sx":I
    iget-object v4, p0, Lrexsee/core/style/CanvasSheet;->y3:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    const-string v5, "px"

    const-string v5, ""

    invoke-virtual {v4, v8, v7}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4, v6}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v2

    .line 75
    .local v2, "sy":I
    iget-object v4, p0, Lrexsee/core/style/CanvasSheet;->x4:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    const-string v5, "px"

    const-string v5, ""

    invoke-virtual {v4, v8, v7}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4, v6}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v1

    .line 76
    .local v1, "sx2":I
    iget-object v4, p0, Lrexsee/core/style/CanvasSheet;->y4:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    const-string v5, "px"

    const-string v5, ""

    invoke-virtual {v4, v8, v7}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4, v6}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v3

    .line 77
    .local v3, "sy2":I
    if-lez v1, :cond_0

    if-gtz v3, :cond_1

    :cond_0
    const/4 v4, 0x0

    :goto_0
    return-object v4

    :cond_1
    new-instance v4, Landroid/graphics/Rect;

    invoke-direct {v4, v0, v2, v1, v3}, Landroid/graphics/Rect;-><init>(IIII)V

    goto :goto_0
.end method

.method private getX()I
    .locals 3

    .prologue
    .line 52
    iget-object v0, p0, Lrexsee/core/style/CanvasSheet;->x:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v1, "px"

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v0

    invoke-direct {p0, v0}, Lrexsee/core/style/CanvasSheet;->scale(I)I

    move-result v0

    return v0
.end method

.method private getX2()I
    .locals 3

    .prologue
    .line 61
    iget-object v0, p0, Lrexsee/core/style/CanvasSheet;->x2:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v1, "px"

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v0

    invoke-direct {p0, v0}, Lrexsee/core/style/CanvasSheet;->scale(I)I

    move-result v0

    return v0
.end method

.method private getY()I
    .locals 3

    .prologue
    .line 55
    iget-object v0, p0, Lrexsee/core/style/CanvasSheet;->y:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v1, "px"

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v0

    invoke-direct {p0, v0}, Lrexsee/core/style/CanvasSheet;->scale(I)I

    move-result v0

    return v0
.end method

.method private getY2()I
    .locals 3

    .prologue
    .line 64
    iget-object v0, p0, Lrexsee/core/style/CanvasSheet;->y2:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v1, "px"

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v0

    invoke-direct {p0, v0}, Lrexsee/core/style/CanvasSheet;->scale(I)I

    move-result v0

    return v0
.end method

.method private getZ()I
    .locals 3

    .prologue
    .line 58
    iget-object v0, p0, Lrexsee/core/style/CanvasSheet;->z:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v1, "px"

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v0

    invoke-direct {p0, v0}, Lrexsee/core/style/CanvasSheet;->scale(I)I

    move-result v0

    return v0
.end method

.method private getZ2()I
    .locals 3

    .prologue
    .line 67
    iget-object v0, p0, Lrexsee/core/style/CanvasSheet;->z2:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v1, "px"

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v0

    invoke-direct {p0, v0}, Lrexsee/core/style/CanvasSheet;->scale(I)I

    move-result v0

    return v0
.end method

.method private scale(I)I
    .locals 2
    .param p1, "pixel"    # I

    .prologue
    .line 49
    iget v0, p0, Lrexsee/core/style/CanvasSheet;->mDensity:F

    int-to-float v1, p1

    mul-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    return v0
.end method


# virtual methods
.method public draw(Landroid/graphics/Canvas;Z)V
    .locals 26
    .param p1, "canvas"    # Landroid/graphics/Canvas;
    .param p2, "debug"    # Z

    .prologue
    .line 129
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->command:Ljava/lang/String;

    move-object v5, v0

    invoke-virtual {v5}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v14

    .line 132
    .local v14, "c":Ljava/lang/String;
    const-string v5, "color"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_3

    .line 135
    :try_start_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->mode:Ljava/lang/String;

    move-object v5, v0

    invoke-static {v5}, Landroid/graphics/PorterDuff$Mode;->valueOf(Ljava/lang/String;)Landroid/graphics/PorterDuff$Mode;

    move-result-object v23

    .line 136
    .local v23, "m":Landroid/graphics/PorterDuff$Mode;
    if-nez v23, :cond_0

    sget-object v23, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 140
    :cond_0
    :goto_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->color:Ljava/lang/String;

    move-object v5, v0

    invoke-static {v5}, Lrexsee/core/style/RexseeDrawable;->getIntColor(Ljava/lang/String;)I

    move-result v5

    move-object/from16 v0, p1

    move v1, v5

    move-object/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V

    .line 214
    .end local v23    # "m":Landroid/graphics/PorterDuff$Mode;
    :cond_1
    :goto_1
    if-eqz p2, :cond_2

    .line 215
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->getMatrix()Landroid/graphics/Matrix;

    move-result-object v5

    move-object/from16 v0, p0

    move-object v1, v5

    invoke-virtual {v0, v1}, Lrexsee/core/style/CanvasSheet;->toastMatrix(Landroid/graphics/Matrix;)V

    .line 217
    :cond_2
    return-void

    .line 137
    :catch_0
    move-exception v5

    move-object/from16 v22, v5

    .line 138
    .local v22, "e":Ljava/lang/Exception;
    sget-object v23, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;

    .restart local v23    # "m":Landroid/graphics/PorterDuff$Mode;
    goto :goto_0

    .line 141
    .end local v22    # "e":Ljava/lang/Exception;
    .end local v23    # "m":Landroid/graphics/PorterDuff$Mode;
    :cond_3
    const-string v5, "point"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_4

    .line 142
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getX()I

    move-result v5

    int-to-float v5, v5

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getY()I

    move-result v6

    int-to-float v6, v6

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    move-object v7, v0

    move-object/from16 v0, p1

    move v1, v5

    move v2, v6

    move-object v3, v7

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawPoint(FFLandroid/graphics/Paint;)V

    goto :goto_1

    .line 143
    :cond_4
    const-string v5, "line"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_5

    .line 144
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getX()I

    move-result v5

    int-to-float v6, v5

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getY()I

    move-result v5

    int-to-float v7, v5

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getX2()I

    move-result v5

    int-to-float v8, v5

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getY2()I

    move-result v5

    int-to-float v9, v5

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    move-object v10, v0

    move-object/from16 v5, p1

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    goto :goto_1

    .line 145
    :cond_5
    const-string v5, "rect"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_6

    .line 146
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getRectF()Landroid/graphics/RectF;

    move-result-object v5

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    move-object v6, v0

    move-object/from16 v0, p1

    move-object v1, v5

    move-object v2, v6

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    goto :goto_1

    .line 147
    :cond_6
    const-string v5, "roundrect"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_7

    .line 148
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getRectF()Landroid/graphics/RectF;

    move-result-object v5

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->round_x_radius:Ljava/lang/String;

    move-object v6, v0

    const/4 v7, 0x0

    invoke-static {v6, v7}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v6

    move-object/from16 v0, p0

    move v1, v6

    invoke-direct {v0, v1}, Lrexsee/core/style/CanvasSheet;->scale(I)I

    move-result v6

    int-to-float v6, v6

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->round_y_radius:Ljava/lang/String;

    move-object v7, v0

    const/4 v8, 0x0

    invoke-static {v7, v8}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v7

    move-object/from16 v0, p0

    move v1, v7

    invoke-direct {v0, v1}, Lrexsee/core/style/CanvasSheet;->scale(I)I

    move-result v7

    int-to-float v7, v7

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    move-object v8, v0

    move-object/from16 v0, p1

    move-object v1, v5

    move v2, v6

    move v3, v7

    move-object v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V

    goto/16 :goto_1

    .line 149
    :cond_7
    const-string v5, "cycle"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_8

    .line 150
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getX()I

    move-result v5

    int-to-float v5, v5

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getY()I

    move-result v6

    int-to-float v6, v6

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->radius:Ljava/lang/String;

    move-object v7, v0

    const/4 v8, 0x0

    invoke-static {v7, v8}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v7

    move-object/from16 v0, p0

    move v1, v7

    invoke-direct {v0, v1}, Lrexsee/core/style/CanvasSheet;->scale(I)I

    move-result v7

    int-to-float v7, v7

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    move-object v8, v0

    move-object/from16 v0, p1

    move v1, v5

    move v2, v6

    move v3, v7

    move-object v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    goto/16 :goto_1

    .line 151
    :cond_8
    const-string v5, "oval"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_9

    .line 152
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getRectF()Landroid/graphics/RectF;

    move-result-object v5

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    move-object v6, v0

    move-object/from16 v0, p1

    move-object v1, v5

    move-object v2, v6

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->drawOval(Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    goto/16 :goto_1

    .line 153
    :cond_9
    const-string v5, "arc"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_a

    .line 154
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->from:Ljava/lang/String;

    move-object v5, v0

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v7

    .line 155
    .local v7, "f":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->to:Ljava/lang/String;

    move-object v5, v0

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v25

    .line 156
    .local v25, "t":F
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getRectF()Landroid/graphics/RectF;

    move-result-object v6

    sub-float v8, v25, v7

    const/4 v9, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    move-object v10, v0

    move-object/from16 v5, p1

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V

    goto/16 :goto_1

    .line 157
    .end local v7    # "f":F
    .end local v25    # "t":F
    :cond_a
    const-string v5, "wedge"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_b

    .line 158
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->from:Ljava/lang/String;

    move-object v5, v0

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v7

    .line 159
    .restart local v7    # "f":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->to:Ljava/lang/String;

    move-object v5, v0

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v25

    .line 160
    .restart local v25    # "t":F
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getRectF()Landroid/graphics/RectF;

    move-result-object v6

    sub-float v8, v25, v7

    const/4 v9, 0x1

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    move-object v10, v0

    move-object/from16 v5, p1

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V

    goto/16 :goto_1

    .line 161
    .end local v7    # "f":F
    .end local v25    # "t":F
    :cond_b
    const-string v5, "text"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_c

    .line 162
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->text:Ljava/lang/String;

    move-object v5, v0

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getX()I

    move-result v6

    int-to-float v6, v6

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getY()I

    move-result v7

    int-to-float v7, v7

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    move-object v8, v0

    move-object/from16 v0, p1

    move-object v1, v5

    move v2, v6

    move v3, v7

    move-object v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    goto/16 :goto_1

    .line 163
    :cond_c
    const-string v5, "textonarc"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_d

    .line 164
    new-instance v10, Landroid/graphics/Path;

    invoke-direct {v10}, Landroid/graphics/Path;-><init>()V

    .line 165
    .local v10, "path":Landroid/graphics/Path;
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->from:Ljava/lang/String;

    move-object v5, v0

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v7

    .line 166
    .restart local v7    # "f":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->to:Ljava/lang/String;

    move-object v5, v0

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v25

    .line 167
    .restart local v25    # "t":F
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getRectF()Landroid/graphics/RectF;

    move-result-object v5

    sub-float v6, v25, v7

    invoke-virtual {v10, v5, v7, v6}, Landroid/graphics/Path;->addArc(Landroid/graphics/RectF;FF)V

    .line 168
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->text:Ljava/lang/String;

    move-object v9, v0

    const/4 v11, 0x0

    const/4 v12, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    move-object v13, v0

    move-object/from16 v8, p1

    invoke-virtual/range {v8 .. v13}, Landroid/graphics/Canvas;->drawTextOnPath(Ljava/lang/String;Landroid/graphics/Path;FFLandroid/graphics/Paint;)V

    goto/16 :goto_1

    .line 169
    .end local v7    # "f":F
    .end local v10    # "path":Landroid/graphics/Path;
    .end local v25    # "t":F
    :cond_d
    const-string v5, "bitmap"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_e

    .line 170
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->drawable:Landroid/graphics/drawable/Drawable;

    move-object v5, v0

    instance-of v5, v5, Landroid/graphics/drawable/BitmapDrawable;

    if-eqz v5, :cond_1

    .line 171
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->drawable:Landroid/graphics/drawable/Drawable;

    move-object v5, v0

    check-cast v5, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {v5}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v5

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getSrcRect()Landroid/graphics/Rect;

    move-result-object v6

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getRect()Landroid/graphics/Rect;

    move-result-object v7

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->paint:Landroid/graphics/Paint;

    move-object v8, v0

    move-object/from16 v0, p1

    move-object v1, v5

    move-object v2, v6

    move-object v3, v7

    move-object v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    goto/16 :goto_1

    .line 175
    :cond_e
    const-string v5, "skew"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_f

    .line 176
    new-instance v24, Landroid/graphics/Matrix;

    invoke-direct/range {v24 .. v24}, Landroid/graphics/Matrix;-><init>()V

    .line 177
    .local v24, "matrix":Landroid/graphics/Matrix;
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->x:Ljava/lang/String;

    move-object v5, v0

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v5

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->y:Ljava/lang/String;

    move-object v6, v0

    const/4 v7, 0x0

    invoke-static {v6, v7}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v6

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getX2()I

    move-result v7

    int-to-float v7, v7

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getY2()I

    move-result v8

    int-to-float v8, v8

    move-object/from16 v0, v24

    move v1, v5

    move v2, v6

    move v3, v7

    move v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Matrix;->postSkew(FFFF)Z

    .line 178
    move-object/from16 v0, p1

    move-object/from16 v1, v24

    invoke-virtual {v0, v1}, Landroid/graphics/Canvas;->concat(Landroid/graphics/Matrix;)V

    goto/16 :goto_1

    .line 179
    .end local v24    # "matrix":Landroid/graphics/Matrix;
    :cond_f
    const-string v5, "scale"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_10

    .line 180
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->x:Ljava/lang/String;

    move-object v5, v0

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v5

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->y:Ljava/lang/String;

    move-object v6, v0

    const/4 v7, 0x0

    invoke-static {v6, v7}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v6

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getX2()I

    move-result v7

    int-to-float v7, v7

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getY2()I

    move-result v8

    int-to-float v8, v8

    move-object/from16 v0, p1

    move v1, v5

    move v2, v6

    move v3, v7

    move v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->scale(FFFF)V

    goto/16 :goto_1

    .line 181
    :cond_10
    const-string v5, "translate"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_11

    .line 182
    new-instance v15, Landroid/graphics/Camera;

    invoke-direct {v15}, Landroid/graphics/Camera;-><init>()V

    .line 183
    .local v15, "camera":Landroid/graphics/Camera;
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getX()I

    move-result v5

    int-to-float v5, v5

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getY()I

    move-result v6

    int-to-float v6, v6

    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getZ()I

    move-result v7

    int-to-float v7, v7

    invoke-virtual {v15, v5, v6, v7}, Landroid/graphics/Camera;->translate(FFF)V

    .line 184
    new-instance v24, Landroid/graphics/Matrix;

    invoke-direct/range {v24 .. v24}, Landroid/graphics/Matrix;-><init>()V

    .line 185
    .restart local v24    # "matrix":Landroid/graphics/Matrix;
    move-object v0, v15

    move-object/from16 v1, v24

    invoke-virtual {v0, v1}, Landroid/graphics/Camera;->getMatrix(Landroid/graphics/Matrix;)V

    .line 186
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getX2()I

    move-result v5

    move v0, v5

    int-to-float v0, v0

    move/from16 v16, v0

    .line 187
    .local v16, "cx":F
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getY2()I

    move-result v5

    move v0, v5

    int-to-float v0, v0

    move/from16 v17, v0

    .line 188
    .local v17, "cy":F
    move/from16 v0, v16

    neg-float v0, v0

    move v5, v0

    move/from16 v0, v17

    neg-float v0, v0

    move v6, v0

    move-object/from16 v0, v24

    move v1, v5

    move v2, v6

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Matrix;->preTranslate(FF)Z

    .line 189
    move-object/from16 v0, v24

    move/from16 v1, v16

    move/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Matrix;->postTranslate(FF)Z

    .line 190
    move-object/from16 v0, p1

    move-object/from16 v1, v24

    invoke-virtual {v0, v1}, Landroid/graphics/Canvas;->concat(Landroid/graphics/Matrix;)V

    goto/16 :goto_1

    .line 191
    .end local v15    # "camera":Landroid/graphics/Camera;
    .end local v16    # "cx":F
    .end local v17    # "cy":F
    .end local v24    # "matrix":Landroid/graphics/Matrix;
    :cond_11
    const-string v5, "rotate"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_15

    .line 192
    new-instance v15, Landroid/graphics/Camera;

    invoke-direct {v15}, Landroid/graphics/Camera;-><init>()V

    .line 193
    .restart local v15    # "camera":Landroid/graphics/Camera;
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->x:Ljava/lang/String;

    move-object v5, v0

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v19

    .line 194
    .local v19, "dx":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->y:Ljava/lang/String;

    move-object v5, v0

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v20

    .line 195
    .local v20, "dy":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/style/CanvasSheet;->z:Ljava/lang/String;

    move-object v5, v0

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v21

    .line 196
    .local v21, "dz":F
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getX2()I

    move-result v5

    move v0, v5

    int-to-float v0, v0

    move/from16 v16, v0

    .line 197
    .restart local v16    # "cx":F
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getY2()I

    move-result v5

    move v0, v5

    int-to-float v0, v0

    move/from16 v17, v0

    .line 198
    .restart local v17    # "cy":F
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getZ2()I

    move-result v5

    move v0, v5

    int-to-float v0, v0

    move/from16 v18, v0

    .line 199
    .local v18, "cz":F
    const/4 v5, 0x0

    cmpl-float v5, v19, v5

    if-eqz v5, :cond_12

    move-object v0, v15

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Camera;->rotateX(F)V

    .line 200
    :cond_12
    const/4 v5, 0x0

    cmpl-float v5, v20, v5

    if-eqz v5, :cond_13

    move-object v0, v15

    move/from16 v1, v20

    invoke-virtual {v0, v1}, Landroid/graphics/Camera;->rotateY(F)V

    .line 201
    :cond_13
    const/4 v5, 0x0

    cmpl-float v5, v21, v5

    if-eqz v5, :cond_14

    move-object v0, v15

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/graphics/Camera;->rotateZ(F)V

    .line 202
    :cond_14
    const/4 v5, 0x0

    const/4 v6, 0x0

    move-object v0, v15

    move v1, v5

    move v2, v6

    move/from16 v3, v18

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Camera;->translate(FFF)V

    .line 203
    new-instance v24, Landroid/graphics/Matrix;

    invoke-direct/range {v24 .. v24}, Landroid/graphics/Matrix;-><init>()V

    .line 204
    .restart local v24    # "matrix":Landroid/graphics/Matrix;
    move-object v0, v15

    move-object/from16 v1, v24

    invoke-virtual {v0, v1}, Landroid/graphics/Camera;->getMatrix(Landroid/graphics/Matrix;)V

    .line 205
    move/from16 v0, v16

    neg-float v0, v0

    move v5, v0

    move/from16 v0, v17

    neg-float v0, v0

    move v6, v0

    move-object/from16 v0, v24

    move v1, v5

    move v2, v6

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Matrix;->preTranslate(FF)Z

    .line 206
    move-object/from16 v0, v24

    move/from16 v1, v16

    move/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Matrix;->postTranslate(FF)Z

    .line 207
    move-object/from16 v0, p1

    move-object/from16 v1, v24

    invoke-virtual {v0, v1}, Landroid/graphics/Canvas;->concat(Landroid/graphics/Matrix;)V

    goto/16 :goto_1

    .line 208
    .end local v15    # "camera":Landroid/graphics/Camera;
    .end local v16    # "cx":F
    .end local v17    # "cy":F
    .end local v18    # "cz":F
    .end local v19    # "dx":F
    .end local v20    # "dy":F
    .end local v21    # "dz":F
    .end local v24    # "matrix":Landroid/graphics/Matrix;
    :cond_15
    const-string v5, "matrix"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_16

    .line 209
    invoke-direct/range {p0 .. p0}, Lrexsee/core/style/CanvasSheet;->getMatrix()Landroid/graphics/Matrix;

    move-result-object v5

    move-object/from16 v0, p1

    move-object v1, v5

    invoke-virtual {v0, v1}, Landroid/graphics/Canvas;->concat(Landroid/graphics/Matrix;)V

    goto/16 :goto_1

    .line 210
    :cond_16
    const-string v5, "resetmatrix"

    invoke-virtual {v14, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 211
    new-instance v5, Landroid/graphics/Matrix;

    invoke-direct {v5}, Landroid/graphics/Matrix;-><init>()V

    move-object/from16 v0, p1

    move-object v1, v5

    invoke-virtual {v0, v1}, Landroid/graphics/Canvas;->setMatrix(Landroid/graphics/Matrix;)V

    goto/16 :goto_1
.end method

.method public toastMatrix(Landroid/graphics/Matrix;)V
    .locals 5
    .param p1, "matrix"    # Landroid/graphics/Matrix;

    .prologue
    .line 99
    const/16 v3, 0x9

    new-array v0, v3, [F

    .line 100
    .local v0, "f":[F
    invoke-virtual {p1, v0}, Landroid/graphics/Matrix;->getValues([F)V

    .line 101
    const-string v2, ""

    .line 102
    .local v2, "rtn":Ljava/lang/String;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    array-length v3, v0

    if-lt v1, v3, :cond_0

    .line 105
    iget-object v3, p0, Lrexsee/core/style/CanvasSheet;->mContext:Landroid/content/Context;

    const/4 v4, 0x1

    invoke-static {v3, v2, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    .line 106
    return-void

    .line 103
    :cond_0
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    aget v4, v0, v1

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ","

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 102
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method
